<?php
class SystemAction extends Action {
	protected $pagesize = 20;
	public function _initialize() {
		if ($_GET ['top_session'] != "") {
			$_SESSION ['top_session'] = $_GET ['top_session'];
			//$_SESSION['seller_nick'] =
		}
		$this->_top_session = $_SESSION ['top_session'];
		if (empty ( $_SESSION ['top_session'] )) {
			echo ('not login');
			$this->redirect ( 'Auth/login', '', 3, '需要登录确认你的身份' );
		} else {
			A("Top")->getseller();
		}
		if( $_SESSION['role'] != 'administrator' ) {
			$this->error( 'ACCESS DENY ', U('Index/index') );
		}
	}
	function index() {
		$this->display();
	}
}